using UnityEditor;
using UnityEditor.UI;
using UnityEngine;
using UnityX;

namespace UnityXEditor
{
    [CanEditMultipleObjects]
    [CustomEditor(typeof(ImageCircle), true)]
    internal class ImageCircleEditor : GraphicEditor
    {
        private SerializedProperty m_Texture;
        private SerializedProperty m_VertCount;

        protected override void OnEnable()
        {
            base.OnEnable();
            m_Texture = serializedObject.FindProperty("m_Texture");
            m_VertCount = serializedObject.FindProperty("m_VertCount");
        }
        public override void OnInspectorGUI()
        {
            serializedObject.Update();
            EditorGUILayout.PropertyField(m_Texture);
            AppearanceControlsGUI();
            RaycastControlsGUI();
            MaskableControlsGUI();
            EditorGUILayout.PropertyField(m_VertCount, new GUIContent("顶点数量"));
            serializedObject.ApplyModifiedProperties();
        }
    }
}